package com.corpcredit.webapp.action;

import java.io.Serializable;
import java.util.List;

import com.corpcredit.webapp.action.BasePage;
import com.corpcredit.model.GlryGzjl;
import com.corpcredit.service.GenericManager;

public class GlryGzjlList extends BasePage implements Serializable {
    private GenericManager<GlryGzjl, Long> glryGzjlManager;

    public void setGlryGzjlManager(GenericManager<GlryGzjl, Long> glryGzjlManager) {
        this.glryGzjlManager = glryGzjlManager;
    }

    public GlryGzjlList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getGlryGzjls() {
        return sort(glryGzjlManager.getAll());
    }
}

